<%-- 
    Document   : template
    Created on : Mar 7, 2012, 12:39:27 PM
    Author     : samph
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Magic Color Theme, Free CSS Template</title>
<meta name="keywords" content="magic color, colorful theme, free CSS templates, CSS, HTML" />
<meta name="description" content="Magic Color Theme, Colorful Template, free website template by templatemo.com" />
<link href="Administrator/css/templatemo_style.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="Template/js/jquery-1.6.2.js"></script>
    <script src="Template/js/jquery.bgiframe-2.1.2.js"></script>
    <script src="Template/js/jquery.ui.core.js"></script>
    <script src="Template/js/jquery.ui.widget.js"></script>
    <script src="Template/js/jquery.ui.mouse.js"></script>
    <script src="Template/js/jquery.ui.button.js"></script>
    <script src="Template/js/jquery.ui.draggable.js"></script>
    <script src="Template/js/jquery.ui.position.js"></script>
    <script src="Template/js/jquery.ui.resizable.js"></script>
    <script src="Template/js/jquery.ui.dialog.js"></script>
    <script src="Template/js/jquery.effects.core.js"></script>
    <script src="Template/js/jquery.ui.autocomplete.js"></script>   
    <script type="text/javascript" src="Template/js/jquery.selectbox-0.1.3.js"></script>
    <link rel="stylesheet" href="Template/js/demos.css"/>
    <link rel="stylesheet" href="Template/js/jquery.ui.theme.css"/>
    <link rel="stylesheet" href="Template/js/jquery.ui.base.css"/> 
    <script src="Administrator/js/showDialog.js"></script>
    
</head>
<body>

<div id="templatemo_body_wrapper">
        <% if(session.getAttribute("UserAdmin")== null)
                        {
       
       %>
    <div id="login-fail1" title="Login fail" style="font-size:12px;">
    <p>You have to login Admin</p>
        </div>
       <script>
           $( "#login-fail1" ).dialog({
                                                        modal: true,
                                                        autoOpen: true,
                                                        buttons: {
                                                                OK: function() {
                                                                        window.location.replace("HomeController?Action=View");
                                                                        $( this ).dialog( "close" );
                                                                }
                                                        }
                                                    });
         
           
       </script>
        <%
        return;
   
    }
    %>
	<div id="templatemo_wrapper">
    
		<div id="templatemo_header">
        	<div id="site_title"><h1><a href="http://www.templatemo.com" target="_parent">Free CSS Templates</a></h1></div>
        </div>
        
        <div id="templatemo_menu">
         <tiles:insertAttribute name="menu"/>     
 
        </div> <!-- end of templatemo_menu -->
        
        <div id="templatemo_main">
            <div class="col_w900 hr_divider">
        	 <tiles:insertAttribute name="main" />  
            </div>    
        </div> <!-- end of templatemo main -->
    	
    </div>
</div>

<div id="templatemo_footer_wrapper">
     <tiles:insertAttribute name="footer" />   

</div>
<tiles:insertAttribute name="divJQuery" />
</body>
</html>